﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="AddUserToRole.aspx.cs" Inherits="HRProject.User.AddUserToRole" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml" >
<head runat="server">
    <title>Add agent to roles</title>
</head>
<body>
    <form id="form1" runat="server">
        <table>
            <tr>
                <td>Agents</td>
                <td>
                    <strong><asp:Label ID="lblUserName" runat="server" Text=""></asp:Label></strong>
                </td>
            </tr>
            <tr>
                <td>Role</td>
                <td>
                <%
                    for (int i = 0; i < AvailableRoles.Count; i++)
                    {
                        %>
                            <input type="checkbox" name="addedRole" value="<%= AvailableRoles[i] %>"/>
                            <%= AvailableRoles[i] %><br />
                        <%
                    }
                %>
                </td>
            </tr>
            <tr>
                <td></td>
                <td>
                    <asp:Button ID="btnOK" runat="server" Text="Add" onclick="btnOK_Click"/>
                    <input type="button" name="btnCancel" value="Cancel"
                        onclick="window.close();"/>
                </td>
            </tr>
            <tr>
                <td></td>
                <td><asp:Label ID="lblError" runat="server" Text="" ForeColor="Red" EnableViewState="false"></asp:Label></td>
            </tr>
        </table>
    </form>
</body>
</html>
